#include "PythonManager.h"
#include "Machine.h"
//}
int main(int argc, char **argv)
{
	PythonManager* pyMgr = new PythonManager();
	pyMgr->init();
	
	
	

	//

	try
	{
		int r = pyMgr->callmethod<int,int,int>("","add",2,2);
		std::cout<<r<<std::endl;
		pyMgr->callClassMethod<void>("car","run");
		Mathine& ma = pyMgr->extractInstance<Mathine&>("car");
		ma.run();
		ma.assemble();
		


		pyMgr->shutdown();
		delete pyMgr;
	}
	catch (...)
	{
		PyErr_Print();
		PyErr_Clear();

	}

	
	// Boost.Python doesn't support Py_Finalize yet, so don't call it!
	return 0;
}